<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div id="content-block">
		<div class="breadcrumb">
			<a href="listfood.html">Thức ăn ngon</a> »
			<a href="detailfood.html?id=${food.code}">${food.name}</a>
		</div>
		<div id="page-title">${food.name}</div>
		<p name="created_name" style="color:#C0C0C0;font-size:12px;">${food.created}</p>
		<p>${food.key}</p>
	<c:if test="${not empty isAdmin}">
           			<a href ="editfood.html?id=${food.code}">edit</a>
           			<a href ="editfoodimage.html?code=${food.code}&key=${food.key}">edit image</a>
     </c:if>
	<div id="node-122" class="node clear-block">


		<div class="content">
			<div
				class="view view-uc-products-detail view-id-uc_products_detail view-display-id-block_1 view-dom-id-1">

				<div class="views-field-field-image-cache-fid">
							<div class="field-content">
								<a href="#" class="nivoZoom" title="Bấm vào ảnh để phóng to" style="position: relative; display: inline-block;"> 
									<img src="/display.html?imageKey=${food.imageKey}" alt="" width="150" height="113" style="opacity: 1;">
									<img src="/display.html?imageKey=${food.imageKey}" class="nivoLarge" title="Bấm vào ảnh để thu nhỏ" style=" position: static; z-index: 99; margin:auto; display: none;">
								</a>

							</div>
						</div>

				<div class="view-content">
					<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
						<div class="views-field-body">
							<div class="field-content">
								<p>${food.detail.value}</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
		</div>
<script type="text/javascript" src="./js/date-format.js"></script>